#include <stdio.h>

char* mstrcpy(char *mdest,const char* msrc){
	char* address = mdest;
	while((*msrc!='\0')&&(*mdest!='\0')){
		*address = *msrc;
		address++;
		msrc++;
	}
	return mdest;
}

int main(){
	char str[10] = "hello,too";
	char* pStr = "good";
	mstrcpy(str,pStr);
	printf("str = %s \n");
}

